import Vue from 'vue'
import App from './App'
//接受myRequest请求接口方法
import {myRequest} from './util/api.js'


//将myRequest方法挂载到全局，定义在vue.prototype原型上
Vue.prototype.$myRequest = myRequest
Vue.filter('formatDate',(date)=>{
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const month = (nDate.getMonth()+1).toString().padStart(2,0)
	const day = nDate.getDate().toString().padStart(2,0)
	return year+'-'+month+'-'+day
})
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
